package com.dms.modules.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("invoice")
@ApiModel("发票实体")
public class Invoice {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("发票ID")
    private Long id;
    
    @ApiModelProperty("订单ID")
    private Long orderId;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("发票类型：0-个人 1-公司")
    private Integer invoiceType;
    
    @ApiModelProperty("发票抬头")
    private String invoiceTitle;
    
    @ApiModelProperty("税号")
    private String taxNumber;
    
    @ApiModelProperty("发票内容")
    private String content;
    
    @ApiModelProperty("发票金额")
    private BigDecimal amount;
    
    @ApiModelProperty("状态：0-待开票 1-已开票")
    private Integer status;
    
    @ApiModelProperty("电子发票链接")
    private String invoiceUrl;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    @TableLogic
    private Integer deleted;
} 